/* 全局样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: "LXGW WenKai", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #0f0c29; /* Fallback if particles don't load or are turned off */
    color: #e0e0e0;
}

/* 新增及增强的动画效果 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); /* 增加浮动幅度 */ }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px) scale(0.98); /* 增加轻微缩放 */}
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.5); } /* 增强脉冲颜色 */
    70% { box-shadow: 0 0 0 15px rgba(76, 201, 240, 0); } /* 增加脉冲范围 */
    100% { box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

@keyframes glow { /* 新增：通用辉光效果 */
    0% { box-shadow: 0 0 5px rgba(76, 201, 240, 0.3), 0 0 10px rgba(76, 201, 240, 0.2); }
    50% { box-shadow: 0 0 15px rgba(76, 201, 240, 0.6), 0 0 25px rgba(76, 201, 240, 0.4); }
    100% { box-shadow: 0 0 5px rgba(76, 201, 240, 0.3), 0 0 10px rgba(76, 201, 240, 0.2); }
}

@keyframes shimmer { /* 新增：闪烁/流光效果 */
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes subtlePulse { /* 新增：细微脉冲 */
    0% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.9; transform: scale(1); }
}

@keyframes attentionShake { /* 新增：错误提示抖动 */
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes iridescentBorder { /* 新增: 彩虹边框动画 */
    0% { border-color: #ff00ff; } /* Magenta */
    25% { border-color: #00ffff; } /* Cyan */
    50% { border-color: #ffff00; } /* Yellow */
    75% { border-color: #ff0077; } /* Pink */
    100% { border-color: #ff00ff; } /* Magenta */
}

/* 滚动条样式 - 进一步美化 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 8, 30, 0.7); /* 更深邃的轨道，匹配背景 */
    border-radius: 10px;
    margin: 4px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3); /* 内部阴影 */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5e72eb, #ff7e5f, #feb47b); /* 更生动的渐变 */
    background-size: 200% 200%;
    border-radius: 10px;
    border: 2px solid rgba(20, 15, 50, 0.6);
    transition: background-position 0.3s ease-in-out;
    animation: hueRotate 8s infinite linear; /* 色相旋转动画 */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f72585, #7209b7, #4cc9f0); /* 悬停时更鲜艳的渐变 */
    background-position: right center; /* 改变渐变位置 */
    box-shadow: 0 0 10px #4cc9f0, 0 0 5px #f72585; /* 悬停发光 */
}

/* Global focus style */
*:focus-visible {
    outline: 2px solid #4cc9f0;
    outline-offset: 3px;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.7), 0 0 8px rgba(247, 37, 133, 0.5); /* 双色辉光 */
    border-radius: 4px; /* 轻微圆角 */
}


/* 页面切换动画 (App.vue) */
.page-fade-enter-active,
.page-fade-leave-active {
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.page-fade-enter-from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}
.page-fade-leave-to {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
}

/* 毛玻璃效果背景增强（可选，如果不需要特定组件控制） */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* background-image: url('your-subtle-artistic-bg-image.png'); */ /* 可以放一张非常非常 subtle 的纹理图片 */
    background-size: cover;
    opacity: 0.05; /* 极低透明度 */
    z-index: -2; /* 确保在粒子层之下 */
    pointer-events: none;
}
